package com.ali.dao;

import com.ali.entity.User;
import mybatis.annotation.MyParam;
import mybatis.annotation.MySelect;

import java.util.List;

public interface UserMapper {
    @MySelect("select * from mybatis_user where id = #{id} and code = #{code} and name = #{name} and nickname = #{name}")
    List<User> queryUser(@MyParam("id") Integer id, @MyParam("code") String code, @MyParam("name") String name);

    @MySelect("select * from mybatis_user where id = #{id} and code = #{code} and name = #{name} and nickname = #{name}")
    User queryUserById(@MyParam("id") Integer id, @MyParam("code") String code, @MyParam("name") String name);
}
